﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace BrsdServer
{
    public partial class find : System.Web.UI.Page
    {
        public static string username = "";
        public static string userpwd = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            username = Session["nameSession"].ToString();
            userpwd = Session["pwdSession"].ToString();
        }

        public string UserName
        {
            get
            {
                return username;
            }
        }

       /* protected void Button1_Click(object sender, EventArgs e)
        {
            string macStr = this.txtMac.Text.ToUpper();
            //isEixt标识是否存在，不存在-1，存在但没有绑定为0，存在绑定1
            int isExit=dnsInfo.GetNumMac(macStr);
            if (isExit==-1)
            {
                string strScript = "<script type='text/javascript'>alert('您查找的MAC地址不存在');</script>";
                Page.ClientScript.RegisterStartupScript(this.GetType(), "", strScript);
            }
            else if (isExit==1)
            {
                string strScript = "<script type='text/javascript'>alert('您查找的MAC地址已绑定');</script>";
                Page.ClientScript.RegisterStartupScript(this.GetType(), "", strScript);
            }
            else
            {
                Response.Redirect("main.aspx");
            }
        }*/
    }
}
